package com.jt9003.service.impl;


import com.jt9003.dao.WarehouseMapper;
import com.jt9003.pojo.Drugs;
import com.jt9003.service.WarehouseInterface;
import org.springframework.stereotype.Service;
import com.jt9003.pojo.Warehouse;
import javax.annotation.Resource;


@Service
public class WarehouseInterfaceImpl implements WarehouseInterface {

    @Resource
    private WarehouseMapper warehouseMapper;

  /*  @Override
    public List<Prescription> getPreById(Integer id) {

        return warehouseMapper.getPreById(id);
    }*/

    @Override  //插入入库单信息到入库单表
    public int insertWarehouse(Warehouse warehouse) {
        return warehouseMapper.insertWarehouse(warehouse);
    }

    @Override//添加入库单 药品信息到药品表
    public int insertWarehouseDrugs(Drugs drugs) {
        return warehouseMapper.insertWarehouseDrugs(drugs);
    }

}
